package com.atguigu.yygh.cmn.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @Author liking
 * @Description
 * @Date 2025/4/28
 * @Version 1.0
 */
@Data
public class UserData {
    @ExcelProperty(value = "用户编号",index = 0)
    private Integer id;
    @ExcelProperty(value = "用户名称",index = 1)
    private String name;
    @ExcelProperty(value = "用户年龄",index = 2)
    private Integer age;
    @ExcelProperty(value = "用户邮箱",index = 3)
    private String email;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "UserData{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                '}';
    }
}
